﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindow.Models;

namespace UIWindow.Lucifer
{
    public interface IObjectContainer
    {

        T ResolveSingleton<T>() where T : new();

        object ResolveEvent(Type type);

        T Resolve<T>() where T : new();
        /// <summary>
        /// 获取视图
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="name"></param>
        /// <returns></returns>
        object ResolvePage(string key);
        IList<MenuModel> GetMenuList(Enums.AuthorityType type);
    }
}
